home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11041 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  875 b 

  1. Path: news1.is.net!news
  2. From: Mark VanTassel <mvantassel@teambca.com>
  3. Newsgroups: comp.lang.c,comp.lang.c++
  4. Subject: Re: Calling System Command in SUN C
  5. Date: Tue, 12 Mar 1996 08:15:28 -0500
  6. Organization: Barfield, Cauthen and Associates
  7. Message-ID: <314578F0.335D@teambca.com>
  8. References: <4i1hlu$asm@ni1.ni.net>
  9. NNTP-Posting-Host: dynamic12.is.net
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (Win95; I)
  14.  
  15. Ed Thomson wrote:
  16. > I would like to execute a system command such as mail or a shell
  17. > script I have generated and was wondering if anyone knew of an easy
  18. > way to do this within C.
  19.  
  20. I know nothing about SUNs, but I think your compiler should have a "system" 
  21. function (in stdlib.h), which will take a char string representing an 
  22. OS command and will give you back a return code from said command.
  23.